/**
 * @Title: StockRecordsModel.java
 * @Description: TODO(用一句话描述该文件做什么)
 * @author 张鑫
 * @phone 17561783855
 * @date 2019年4月17日
 */
package com.fortune.rainshinecommon.model.service;

import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;

/**
 * @ClassName: StockRecordsModel
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 张鑫
 * @phone 17561783855
 * @date 2019年4月17日
 *
 */
@TableName("stores_records")
public class StockRecordsModel extends BaseModel {

    private static final long serialVersionUID = -5001365983599725575L;

    private Integer productId;//产品id
    private Integer shopId;//门店id
    private Integer stockId;//库存id
    private Integer amount;//操作数量
    private Integer type;//1:入库；2:出库; 3:销售；4：领用
    private String code;//type为12时为订单code,为34时为销售领用code
    
    @TableField(exist = false)
    private String shopName;//店铺名称

    @TableField(exist = false)
    private String customerName;//客户姓名
    @TableField(exist = false)
    private String customerPhone;//客户手机号
    @TableField(exist = false)
    private String nickName;//操作员名称
    @TableField(exist = false)
    private String productName;//产品名称
    @TableField(exist = false)
    private List<OrderDetailModel> orderDetail;//下单详情
    
    
    /**
     * 顾客id
     */
    @TableField(exist = false)
    private Integer customerId;
    /**
     * 登录用户id
     */
    @TableField(exist = false)
    private Integer userId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public StockRecordsModel() {
        super();
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public StockRecordsModel(Integer productId, Integer shopId, Integer stockId, Integer amount) {
        super();
        this.productId = productId;
        this.shopId = shopId;
        this.stockId = stockId;
        this.amount = amount;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

	public String getCode() {
		return code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public List<OrderDetailModel> getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(List<OrderDetailModel> orderDetail) {
		this.orderDetail = orderDetail;
	}
	
}